<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<% 
response.setHeader("Pragma","No-cache"); 
response.setHeader("Cache-Control","no-cache"); 
response.setDateHeader("Expires", 0); 
%> 
<c:forEach var="t" items="${pageInfo.list}" varStatus="status">
    <tr>
	  <td title="${t.name}">
	  	<input class="role_page_content_table" value="${t.id}" style="display: none;">
	  	  ${t.name}
	  </td>
	  <td title="${t.description}">
		  ${fn:substring(t.description, 0, 15)}
		  <c:if test="${(fn:length(t.description))>15 }">
		  	...
		  </c:if>
	  </td>
	  <td style="text-align: center;">
	    <button id="roleAddButton${t.id}" onclick="sysuserRoleAdd(${t.id})" class="layui-btn layui-btn-danger layui-btn-small">添加</button>
	    <button id="roleAddButtondis${t.id}" class="layui-btn layui-btn-disabled layui-btn-small">已添加</button>
  	  </td>
	</tr>
</c:forEach>
<script>
var role_pageNum = "${pageInfo.pageNum}";
var role_total = "${pageInfo.total}";
var role_pages = "${pageInfo.pages}";
</script>
<script src="${pageContext.request.contextPath}/static/js/back/sysuser/sysroleSelectList.js"></script>
